<%= simple_form_for([:admin, @company_case], html: {class: 'layui-form'}) do |f| %>
  <%= f.error_notification %>

    <div class="layui-form-item">
      <%= f.label :content, class: 'layui-form-label' %>
      <div class="layui-input-block">
        <%= f.text_area :content, class: 'layui-input', autocomplete: 'off', placeholder: CompanyCase.human_attribute_name(:content) %>
      </div>
    </div>

    <div class="layui-form-item">
      <%= f.label :order_number, class: 'layui-form-label' %>
      <div class="layui-input-block">
        <%= f.input_field :order_number, class: 'layui-input', autocomplete: 'off', placeholder: CompanyCase.human_attribute_name(:order_number) %>
      </div>
    </div>

  <div class="actions" hidden>
    <%= f.submit t('buttons.save'), data: { disable_with: "保存中..." }, class: 'layui-btn save_submit' %>
    <%= link_to t('buttons.cancel'), url_for(:back), class: 'layui-btn layui-btn-normal' %>
  </div>
<% end %>


<script>
  BuildFroalaEditor('#company_case_content');
</script>